<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <link rel='stylesheet' type='text/css' href='http://fonts.useso.com/css?family=Open+Sans:300,400,600,700,400italic'>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/resource/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/resource/font-awesome.min.css">    
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/resource/css/style.css">
    <title>Welocome！欢迎访问！！</title>
</head>

<body>


 <div class="main-body">	
        <div class="container">
            <div class="row">               
                <div class="main-page">

                    <aside class="main-navigation">
                        <div class="main-menu">

                            <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-2-1 block-width-full home">                                    
                                    <a href="index" class="block-keep-ratio__content  main-menu-link">
                                        <span class="main-menu-link-text">
                                            主页    
                                        </span>                                        
                                    </a>
                                </div>                                
                            </div>

                            <div class="menu-container">                                
                                                               
                                 
                                 
                                 <if condition="$_SESSION['users'] eq null">
								 <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">     
                                    <a href="#" data-toggle="modal" data-target="#regModa2" class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      学生登录
                                    </a>                                    
                                </div>
							
								<else/> 
								 <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">     
                                    <a href="{:U('Home/User/logout')}"  class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      注销
                                    </a>                                    
                                </div>
							</if>
                                 
                                
                                
                                <!-- 登录模态框 -->
<div class="modal fade" id="regModa2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  		<div class="modal-dialog" role="document">
   			<div class="modal-content">
     			<div class="modal-header">
       			
       		 		<h3 class="modal-title" id="myModalLabel">用户登录</h3>
      			</div>
      			<div class="modal-body">
			      	<!-- 模态框内部代码 -->
			    	<!-- 这是一个模态窗口信息区 -->
			    	<form method="post" action="login " enctype="multipart/form-data" class="form-horizontal">
			    	<table align="center">
			    		<tr>
			    			<td>用户名：</td><td><input name="username" type="text" placeholder="Username"></td>
			    		</tr>
			    		<tr><td>&nbsp;</td></tr>
			    		<tr>
			    			<td>密码：</td><td><input name="password" type="password" placeholder="Password"></td>
			    		</tr>			    		
			    	</table>    	
      			</div>
      			<div class="modal-footer">
			   
			        <button type="submit" class="btn btn-primary">登录</button>
			        <button type="reset" class="btn btn-default"  data-dismiss="modal">重置</button>
			       
      			</div>
      				</form>
    		</div>
  		</div>
	</div>
	<!-- 登录模态框 -->
	
	<!-- 登录模态框 -->
<div class="modal fade" id="regModa3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  		<div class="modal-dialog" role="document">
   			<div class="modal-content">
     			<div class="modal-header">
       			
       		 		<h3 class="modal-title" id="myModalLabel">社团负责人登录</h3>
      			</div>
      			<div class="modal-body">
			      	<!-- 模态框内部代码 -->
			    	<!-- 这是一个模态窗口信息区 -->
			    	<form method="post" action="leaderlogin " enctype="multipart/form-data" class="form-horizontal">
			    	<table align="center">
			    		<tr>
			    			<td>用户名：</td><td><input name="username" type="text" placeholder="Username"></td>
			    		</tr>
			    		<tr><td>&nbsp;</td></tr>
			    		<tr>
			    			<td>密码：</td><td><input name="password" type="password" placeholder="Password"></td>
			    		</tr>			    		
			    	</table>    	
      			</div>
      			<div class="modal-footer">
			   
			        <button type="submit" class="btn btn-primary">登录</button>
			        <button type="reset" class="btn btn-default"  data-dismiss="modal">重置</button>
			       
      			</div>
      				</form>
    		</div>
  		</div>
	</div>
	<!-- 登录模态框 -->
	
		<!-- 登录模态框 -->
<div class="modal fade" id="regModa4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  		<div class="modal-dialog" role="document">
   			<div class="modal-content">
     			<div class="modal-header">
       			
       		 		<h3 class="modal-title" id="myModalLabel">管理员登录</h3>
      			</div>
      			<div class="modal-body">
			      	<!-- 模态框内部代码 -->
			    	<!-- 这是一个模态窗口信息区 -->
			    	<form method="post" action="adminlogin " enctype="multipart/form-data" class="form-horizontal">
			    	<table align="center">
			    		<tr>
			    			<td>管理员帐户：</td><td><input name="username" type="text" placeholder="Username"></td>
			    		</tr>
			    		<tr><td>&nbsp;</td></tr>
			    		<tr>
			    			<td>密码：</td><td><input name="password" type="password" placeholder="Password"></td>
			    		</tr>			    		
			    	</table>    	
      			</div>
      			<div class="modal-footer">
			   
			        <button type="submit" class="btn btn-primary">登录</button>
			        <button type="reset" class="btn btn-default"  data-dismiss="modal">重置</button>
			       
      			</div>
      				</form>
    		</div>
  		</div>
	</div>
	<!-- 登录模态框 -->

                                                  

                                <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-right  contact-main">
                                    <a href="" data-toggle="modal" data-target="#regModa4" class="main-menu-link contact block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                       管理员登录
                                    </a>                                
                                </div>    
                            </div>   
                            
                            
                            
                             <div class="menu-container">     
                              <if condition="$_SESSION['users'] eq null">
								  <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">     
                                    <a href="#" data-toggle="modal" data-target="#regModal" class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      学生注册
                                    </a>                                    
                                </div>
							
								<else/> 
								  <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">                                    
                                    <a href="{:U('Home/User/userInfo')}" class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      个人信息
                                    </a>                                    
                                </div>
								 
							</if>
                                                        
                             
<!-- 注册模态框 -->
<div class="modal fade" id="regModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h3 class="modal-title" id="myModalLabel">用户注册表</h3>
      </div>
      <div class="modal-body ">
      
      <!-- 模态框内部代码 -->
    	<!-- 这是一个模态窗口信息区 -->
		
    	     <form class="form-horizontal" method="post" enctype="multipart/form-data" action="addUser" >
                
   					<input type="hidden" name="uid" value="">
			
                  <div class="control-group">
                     <label for="username" class=" control-label">用户名</label>
                    <div class="controls">
                       <input type="text" class="form-control" id="username" name="username" placeholder="username" value="">
                    </div>
                  </div>
                  
                       <div class="control-group">
                     <label for="pass"class="control-label">密码</label>

                    <div class="controls">
          				 <input type="password" class=" form-control " id="pass" name="pass" placeholder="password" value="">
                    </div>
                  </div>
                  
                       <div class="control-group">
                     <label for="stunum" class="col-md-2 control-label">学号</label>
                    <div class="controls">
                     <input type="text" class="form-control" id="stunum" name="stunum" placeholder="stunum" value="">
                    </div>
                  </div>
                  
                       <div class="control-group">
                      <label for="realname" class="col-md-2 control-label">真实姓名</label>
                    <div class="controls">
                        <input type="text" class="form-control" id="realname" name="realname" placeholder="realname" value="">
                    </div>
                  </div>
                  
                       <div class="control-group">
                     <label for="tele" class="col-md-2 control-label">电话</label>
                    <div class="controls">
                        <input type="text" class="form-control" id="tele" name="tele" placeholder="telephone" value="">
                    </div>
                  </div>
                  
                    <div class="control-group">
                       <label for="email" class="col-md-2 control-label">Email </label>
                    <div class="controls">
                         <input type="email" class="form-control" id="email" name="email" placeholder="email" value="">
                    </div>
                  </div>

                            <div class="control-group">
                       <label for="photo" class="col-md-2 control-label">上传头像</label>

                    <div class="controls">
                            <input type="file" id="photo" name="photo">

                    </div>
                  </div>
                  
                
            </div>
            
            <div class="widget-footer">
               <button class="btn btn-primary" type="submit">Save</button>
               <button class="btn" type="button">Cancel</button>
            </div>
            </form>
            
    </div>
  </div>
</div>
<!-- 注册模态框 -->


                            
                     



                                 <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-right  contact-main">
                                       <a href="#" data-toggle="modal" data-target="#regModa3" class="main-menu-link contact block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                     社团负责人登陆
                                    </a>                                                             
                                </div>    
                            </div>   

                            <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-1-1 block-keep-ratio-md-2-1 block-width-full gallery">                                    
                                    <a href="{:U('Home/User/practiceslist')}" class="main-menu-link  block-keep-ratio__content">
                                        <span class="main-menu-link-text">
                                            活动信息    
                                        </span>                                            
                                    </a>                                    
                                </div>                                
                            </div>
                            
                               <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-1-1 block-keep-ratio-md-2-1 block-width-full gallery">                                    
                                    <a href="{:U('Home/User/groupslist')}"  class="main-menu-link  block-keep-ratio__content">
                                        <span class="main-menu-link-text">
                                            社团信息    
                                        </span>                                            
                                    </a>                                    
                                </div>                                
                            </div>
                            
                              <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-1-1 block-keep-ratio-md-2-1 block-width-full gallery">                                    
                                    <a href="{:U('Home/User/newslist')}"  class="main-menu-link  block-keep-ratio__content">
                                        <span class="main-menu-link-text">
                                            动态信息    
                                        </span>                                            
                                    </a>                                    
                                </div>                                
                            </div>
                            

                            <!-- sidebar carousel -->
                            <div class="menu-container">
                                <div class="mauris">
                                    <div id="carousel-menu" class="carousel slide" data-ride="carousel">
                                        <!-- Wrapper for slides -->
                                        <div class="carousel-inner" role="listbox">
                                            <div class="item active">
                                                <img src="images/slider-img-1.png" alt="slider">
                                                <div class="carousel-caption menu-caption">
                                                    mauris vita
                                                </div>
                                            </div>
                                            <div class="item">
                                                <img src="images/menu-bg-home.png" alt="slider">
                                                <div class="carousel-caption menu-caption">
                                                    lorem ipsum
                                                </div>
                                            </div>
                                        </div>

                                        <!-- Controls -->
                                        <a class="left carousel-control" href="#carousel-menu" role="button" data-slide="prev">
                                            <span class="fa fa-caret-left" aria-hidden="true"></span>
                                            <span class="sr-only">Previous</span>
                                        </a>
                                        <a class="right carousel-control" href="#carousel-menu" role="button" data-slide="next">
                                            <span class="fa fa-caret-right" aria-hidden="true"></span>
                                            <span class="sr-only">Next</span>
                                        </a>
                                    </div>
                                </div> <!-- .mauris -->
                            </div>
                        </div> <!-- main-menu -->
                    </aside> <!-- main-navigation -->
                    